<!DOCTYPE html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        *{padding: 0;margin: 0}
        .wrap{
            width: 100%;
            background: red;
            height: 60px;
        }
        span{
            line-height: 60px;
            color: #fff;
        }
        .title{
            font-size: 32px;
            float: left;
        }
        .btn{
           float: right;
            font-size: 24px;
        }
        .wrap2{
            height: 100%;
            padding-left: 32px;
            padding-right: 32px;
        }
    </style>
</head>
<body>
    <div class="wrap">
        <div class="wrap2">
                <span class="title">标题</span>
                <span class="btn">按钮</span>
        </div>
    </div>
</body>
</html>